package sh.wn36.vehiclemanage.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="RepairRecord对象", description="")
public class RepairRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("CAR_ID")
    private Integer carId;

    @TableField("REPAIR_DEPOT_ID")
    private Integer repairDepotId;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField("SEND_TIME")
    private Date sendTime;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField("ESTIMATE_TIME")
    private Date estimateTime;

    @TableField("SEND_REASON")
    private String sendReason;

    @TableField("SEND_REMARKS")
    private String sendRemarks;

    @TableField("OPERATOR")
    private Integer operator;

    @TableField("REPAIR_TYPE")
    private Integer repairType;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField("GET_TIME")
    private Date getTime;

    @TableField("REPAIR_COST")
    private BigDecimal repairCost;

    @TableField("REPAIR_OPTION")
    private String repairOption;

    @TableField("USE_STUFF")
    private String useStuff;

    @TableField("GET_REMARKS")
    private String getRemarks;

    @Version
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "乐观锁")
    private  Integer version;
}
